import { Button as AntdButton } from 'antd'
import { CommonComponentProps } from '../../interface'


const Button = ({ type, text, styles, ...props }: CommonComponentProps) => {

  const { id, ...buttonProps } = props

  return (  
    <AntdButton type={type} style={styles} {...buttonProps}>{text}</AntdButton>
  )
}

export default Button